<%@ page contentType="text/html;charset=UTF-8"%> 
<%@ page import="java.util.*" %>
<%
	String isadmin=(String)request.getAttribute("isadmin");
	List permissionList=(List)request.getAttribute("permissionList");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head><title> 
 
</title><link href="${pageContext.request.contextPath }/common/css/style.css" rel="stylesheet" type="text/css" /></head> 
<body> 
     <div class="main_left" dir="ltr"> 
 
   		<%if("1".equals(isadmin)){ %>
   
		<div class="main_leftmenu_ls"><div class="menu_font">用户管理</div></div> 
			<!--上一级的二级--> 
			<div class="main_leftmenu_n"> 
				
				<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/userListPage.do" target="mainFrame">用户列表</a> </div>				
				<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/permissionListPage.do" target="mainFrame">权限列表</a> </div>
				<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/groupListPage.do" target="mainFrame">用户组列表</a> </div>
				<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/mystocklistpage.do" target="mainFrame">我的股票</a> </div>	
				<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/stockslistpage.do" target="mainFrame">股票列表</a> </div>	
			</div> 
			<!--上一级的二级 end--> 
	  
   
		
		<div class="main_leftmenu_ls"><div class="menu_font">系统管理</div></div>
			<!--上一级的二级-->
			<div class="main_leftmenu_n">

				<div class="main_leftmenu_ne"><a href="#" target="mainFrame">码表管理列表</a> </div>



			</div>
	  
   <%}else{%>
   			<div class="main_leftmenu_ls"><div class="menu_font">用户管理</div></div> 
			<!--上一级的二级--> 
			<div class="main_leftmenu_n"> 
				<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/mystocklistpage.do" target="mainFrame">我的股票</a> </div>				
   				<% 
					for(int i=0;i<permissionList.size();i++){
						Map m=(Map)permissionList.get(i);
						int value=Integer.valueOf(m.get("link").toString());
						if(value==1){ 
				%>
					<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/userListPage.do" target="mainFrame"><%=m.get("name").toString() %></a></div>
				<%}else if(value==2){ %>
				 	<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/groupListPage.do" target="mainFrame"><%=m.get("name").toString() %></a></div>
				<%}else if(value==3){%>	
					<div class="main_leftmenu_ne"><a href="${pageContext.request.contextPath}/admin/permissionListPage.do" target="mainFrame"><%=m.get("name").toString() %></a></div>
				<%}%>	
		 
		<%}} %>
	  </div>
   <!--
		<div class="main_leftmenu_ls"><div class="menu_font">留言板管理</div></div> 
			
			<div class="main_leftmenu_n"> 
			
				<div class="main_leftmenu_ne"><a href="/admin/notebook/notebookList.aspx" target="mainFrame">留言板列表 </a> </div> 
				
			</div> 
			
	  
   
		<div class="main_leftmenu_ls"><div class="menu_font">关于我们</div></div> 
			
			<div class="main_leftmenu_n"> 
			
				<div class="main_leftmenu_ne"><a href="/admin/aboutEdit.aspx" target="mainFrame">关于我们维护 </a> </div> 
				
			</div> 
			
	  
   
		<div class="main_leftmenu_ls"><div class="menu_font">系统维护</div></div> 
			
			<div class="main_leftmenu_n"> 
			
				<div class="main_leftmenu_ne"><a href="/admin/siteEdit.aspx" target="mainFrame">网站基本信息维护 </a> </div> 
				
				<div class="main_leftmenu_ne"><a href="/admin/mbList.aspx" target="mainFrame">码表管理 </a> </div> 
				
				<div class="main_leftmenu_ne"><a href="/admin/links/linkList.aspx" target="mainFrame">有情链接管理 </a> </div> 
				
			</div> 
			--> 
	
			
</div> 
</body> 
</html> 